<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.SlideIndicator类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_slide_indicator.html">SlideIndicator</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_slide_indicator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.SlideIndicator类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.SlideIndicator 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_slide_indicator.png" usemap="#awtk.SlideIndicator_map" alt=""/>
  <map id="awtk.SlideIndicator_map" name="awtk.SlideIndicator_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9e6af70151d9d9f7f4ff1a643731eb1f"><td class="memItemLeft" align="right" valign="top"><a id="a9e6af70151d9d9f7f4ff1a643731eb1f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SlideIndicator</b> (long nativeObj)</td></tr>
<tr class="separator:a9e6af70151d9d9f7f4ff1a643731eb1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fca179c9ff5a1204e6de26194bf9de4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a7fca179c9ff5a1204e6de26194bf9de4">setValue</a> (int value)</td></tr>
<tr class="separator:a7fca179c9ff5a1204e6de26194bf9de4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51fa1bdbf17e22747c2d708e1f95141d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a51fa1bdbf17e22747c2d708e1f95141d">setMax</a> (int max)</td></tr>
<tr class="separator:a51fa1bdbf17e22747c2d708e1f95141d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5fd6e5391f8d6edf58dc6e0f54d825a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#af5fd6e5391f8d6edf58dc6e0f54d825a">setDefaultPaint</a> (<a class="el" href="enumawtk_1_1_indicator_default_paint.html">IndicatorDefaultPaint</a> default_paint)</td></tr>
<tr class="separator:af5fd6e5391f8d6edf58dc6e0f54d825a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ef39285a73a001e186a0b8ec35bbf49"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a1ef39285a73a001e186a0b8ec35bbf49">setAutoHide</a> (int auto_hide)</td></tr>
<tr class="separator:a1ef39285a73a001e186a0b8ec35bbf49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad44e40dab8384c21873d809a675a2955"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#ad44e40dab8384c21873d809a675a2955">setMargin</a> (int margin)</td></tr>
<tr class="separator:ad44e40dab8384c21873d809a675a2955"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef7b6cc1a17ad92ef0268625574c2c79"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#aef7b6cc1a17ad92ef0268625574c2c79">setSpacing</a> (double spacing)</td></tr>
<tr class="separator:aef7b6cc1a17ad92ef0268625574c2c79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae731eb7d2d756c47b70b89117d5ef564"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#ae731eb7d2d756c47b70b89117d5ef564">setSize</a> (int size)</td></tr>
<tr class="separator:ae731eb7d2d756c47b70b89117d5ef564"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05e34cb5bc56acb1a9fb3510b85d0ccf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a05e34cb5bc56acb1a9fb3510b85d0ccf">setAnchor</a> (String anchor_x, String anchor_y)</td></tr>
<tr class="separator:a05e34cb5bc56acb1a9fb3510b85d0ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dd926a96234dcf501f183ab1e0f5780"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a1dd926a96234dcf501f183ab1e0f5780">setIndicatedTarget</a> (String indicated_target)</td></tr>
<tr class="separator:a1dd926a96234dcf501f183ab1e0f5780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8078c92bf976db03ed5c732798805db8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a8078c92bf976db03ed5c732798805db8">getMax</a> ()</td></tr>
<tr class="separator:a8078c92bf976db03ed5c732798805db8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88cedb68ab77afff299ce767481f1a70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_indicator_default_paint.html">IndicatorDefaultPaint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a88cedb68ab77afff299ce767481f1a70">getDefaultPaint</a> ()</td></tr>
<tr class="separator:a88cedb68ab77afff299ce767481f1a70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ee8bffd7cfe40c62b8d66523cc91999"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a2ee8bffd7cfe40c62b8d66523cc91999">getAutoHide</a> ()</td></tr>
<tr class="separator:a2ee8bffd7cfe40c62b8d66523cc91999"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b1a5e5ebe01be6b333efc7e2b464f06"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a4b1a5e5ebe01be6b333efc7e2b464f06">getMargin</a> ()</td></tr>
<tr class="separator:a4b1a5e5ebe01be6b333efc7e2b464f06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae89f7ddf6f51961a04ecd58cb5454aa"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#aae89f7ddf6f51961a04ecd58cb5454aa">getSpacing</a> ()</td></tr>
<tr class="separator:aae89f7ddf6f51961a04ecd58cb5454aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adaca4ebef16da98cdb2bd8bea70f50ca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#adaca4ebef16da98cdb2bd8bea70f50ca">getSize</a> ()</td></tr>
<tr class="separator:adaca4ebef16da98cdb2bd8bea70f50ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87702bdea999fc00e266a7da4c321329"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a87702bdea999fc00e266a7da4c321329">getAnchorX</a> ()</td></tr>
<tr class="separator:a87702bdea999fc00e266a7da4c321329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aceb30a116181b69f05b41f11447632f5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#aceb30a116181b69f05b41f11447632f5">getAnchorY</a> ()</td></tr>
<tr class="separator:aceb30a116181b69f05b41f11447632f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9abbf1d7370ce2a430a2078d38f5685c"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a9abbf1d7370ce2a430a2078d38f5685c">getIndicatedTarget</a> ()</td></tr>
<tr class="separator:a9abbf1d7370ce2a430a2078d38f5685c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a36c80d3a4c98b496192fc4a719f81a1e"><td class="memItemLeft" align="right" valign="top"><a id="a36c80d3a4c98b496192fc4a719f81a1e"></a>
static <a class="el" href="classawtk_1_1_slide_indicator.html">SlideIndicator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a36c80d3a4c98b496192fc4a719f81a1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5418a8e0cf3744daf6ac2280d257b81"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#af5418a8e0cf3744daf6ac2280d257b81">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:af5418a8e0cf3744daf6ac2280d257b81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa2de32dbb8f84236883a856a8594582"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#aaa2de32dbb8f84236883a856a8594582">createLinear</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:aaa2de32dbb8f84236883a856a8594582"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dc7faef0f1e8791e752a7a5149ea0a4"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a9dc7faef0f1e8791e752a7a5149ea0a4">createArc</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a9dc7faef0f1e8791e752a7a5149ea0a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19a8efd670c6fa0f714ab5562643cd5b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_slide_indicator.html">SlideIndicator</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_indicator.html#a19a8efd670c6fa0f714ab5562643cd5b">cast</a> (Widget widget)</td></tr>
<tr class="separator:a19a8efd670c6fa0f714ab5562643cd5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:ae26e04493f5d483b01544fb47704d5dd"><td class="memItemLeft" align="right" valign="top"><a id="ae26e04493f5d483b01544fb47704d5dd"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:ae26e04493f5d483b01544fb47704d5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>slide_view的指示器控件。</p>
<p>支持直线、弧线排布，默认有4种绘制样式，若设置了icon/active_icon，则优先使用icon/active_icon</p>
<p>slide_indicator_t是widget的子类控件，widget_t的函数均适用于slide_indicator_t控件。</p>
<p>在xml中使用"slide\_indicator"或"slide\_indicator\_arc"标签创建指示器控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">slide_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div><div class="line">...</div><div class="line">&lt;/<span class="keywordtype">slide_view</span>&gt;</div><div class="line">&lt;<span class="keywordtype">slide_indicator</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;indicator&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;6&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>/&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/slide_view.xml">slide_view.xml</a></p>
<p>在c代码中使用函数slide_indicator_create创建指示器控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#FFFFFF80&quot;</span> <span class="keyword">selected_fg_color</span>=<span class="stringliteral">&quot;#FFFFFF&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L350">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a19a8efd670c6fa0f714ab5562643cd5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19a8efd670c6fa0f714ab5562643cd5b">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_slide_indicator.html">SlideIndicator</a> awtk.SlideIndicator.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为slide_indicator对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>slide_indicator对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>slide_indicator对象。 </dd></dl>

</div>
</div>
<a id="af5418a8e0cf3744daf6ac2280d257b81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5418a8e0cf3744daf6ac2280d257b81">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.SlideIndicator.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_indicator对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a9dc7faef0f1e8791e752a7a5149ea0a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9dc7faef0f1e8791e752a7a5149ea0a4">&#9670;&nbsp;</a></span>createArc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.SlideIndicator.createArc </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_indicator对象（圆弧显示）</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="aaa2de32dbb8f84236883a856a8594582"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa2de32dbb8f84236883a856a8594582">&#9670;&nbsp;</a></span>createLinear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.SlideIndicator.createLinear </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_indicator对象（线性显示）</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a87702bdea999fc00e266a7da4c321329"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87702bdea999fc00e266a7da4c321329">&#9670;&nbsp;</a></span>getAnchorX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.SlideIndicator.getAnchorX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>锚点x坐标。 </p>

</div>
</div>
<a id="aceb30a116181b69f05b41f11447632f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aceb30a116181b69f05b41f11447632f5">&#9670;&nbsp;</a></span>getAnchorY()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.SlideIndicator.getAnchorY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>锚点y坐标。 </p>

</div>
</div>
<a id="a2ee8bffd7cfe40c62b8d66523cc91999"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ee8bffd7cfe40c62b8d66523cc91999">&#9670;&nbsp;</a></span>getAutoHide()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.SlideIndicator.getAutoHide </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自动隐藏。0表示禁止，非0表示无操作后延迟多久隐藏。 </p>

</div>
</div>
<a id="a88cedb68ab77afff299ce767481f1a70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88cedb68ab77afff299ce767481f1a70">&#9670;&nbsp;</a></span>getDefaultPaint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_indicator_default_paint.html">IndicatorDefaultPaint</a> awtk.SlideIndicator.getDefaultPaint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>指示器的类型。 </p>

</div>
</div>
<a id="a9abbf1d7370ce2a430a2078d38f5685c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9abbf1d7370ce2a430a2078d38f5685c">&#9670;&nbsp;</a></span>getIndicatedTarget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.SlideIndicator.getIndicatedTarget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>指示器指示的目标。 </p>

</div>
</div>
<a id="a4b1a5e5ebe01be6b333efc7e2b464f06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b1a5e5ebe01be6b333efc7e2b464f06">&#9670;&nbsp;</a></span>getMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.SlideIndicator.getMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>指示器与边缘的边距。 </p>

</div>
</div>
<a id="a8078c92bf976db03ed5c732798805db8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8078c92bf976db03ed5c732798805db8">&#9670;&nbsp;</a></span>getMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.SlideIndicator.getMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大值(缺省为100)。 </p>

</div>
</div>
<a id="adaca4ebef16da98cdb2bd8bea70f50ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adaca4ebef16da98cdb2bd8bea70f50ca">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.SlideIndicator.getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>指示器的大小。 </p>

</div>
</div>
<a id="aae89f7ddf6f51961a04ecd58cb5454aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae89f7ddf6f51961a04ecd58cb5454aa">&#9670;&nbsp;</a></span>getSpacing()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.SlideIndicator.getSpacing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>指示器的中心之间的间距（圆弧显示时，间距的单位为弧度，否则为像素）。 </p>

</div>
</div>
<a id="a05e34cb5bc56acb1a9fb3510b85d0ccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05e34cb5bc56acb1a9fb3510b85d0ccf">&#9670;&nbsp;</a></span>setAnchor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setAnchor </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>anchor_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>anchor_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置旋转锚点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anchor_x</td><td>锚点坐标x。(后面加上px为像素点，不加px为相对百分比坐标) </td></tr>
    <tr><td class="paramname">anchor_y</td><td>锚点坐标y。(后面加上px为像素点，不加px为相对百分比坐标)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1ef39285a73a001e186a0b8ec35bbf49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ef39285a73a001e186a0b8ec35bbf49">&#9670;&nbsp;</a></span>setAutoHide()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setAutoHide </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>auto_hide</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器是否自动隐藏。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_hide</td><td>0表示禁止，非0表示无操作后延迟多久隐藏。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af5fd6e5391f8d6edf58dc6e0f54d825a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5fd6e5391f8d6edf58dc6e0f54d825a">&#9670;&nbsp;</a></span>setDefaultPaint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setDefaultPaint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="enumawtk_1_1_indicator_default_paint.html">IndicatorDefaultPaint</a>&#160;</td>
          <td class="paramname"><em>default_paint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器的默认绘制类型。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">default_paint</td><td>默认绘制类型。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1dd926a96234dcf501f183ab1e0f5780"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1dd926a96234dcf501f183ab1e0f5780">&#9670;&nbsp;</a></span>setIndicatedTarget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setIndicatedTarget </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>indicated_target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器指示的目标。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">indicated_target</td><td>指示器指示的目标</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad44e40dab8384c21873d809a675a2955"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad44e40dab8384c21873d809a675a2955">&#9670;&nbsp;</a></span>setMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setMargin </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>margin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器的边距(默认为10像素)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">margin</td><td>指示器的边距。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a51fa1bdbf17e22747c2d708e1f95141d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51fa1bdbf17e22747c2d708e1f95141d">&#9670;&nbsp;</a></span>setMax()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setMax </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器的数量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>数量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae731eb7d2d756c47b70b89117d5ef564"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae731eb7d2d756c47b70b89117d5ef564">&#9670;&nbsp;</a></span>setSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器的大小(默认为8)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>指示器的大小。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aef7b6cc1a17ad92ef0268625574c2c79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef7b6cc1a17ad92ef0268625574c2c79">&#9670;&nbsp;</a></span>setSpacing()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setSpacing </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>spacing</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置指示器的间距(指示器有弧度时为角度值，否则为直线间距)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">spacing</td><td>指示器的间距。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7fca179c9ff5a1204e6de26194bf9de4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fca179c9ff5a1204e6de26194bf9de4">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideIndicator.setValue </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置当前页的序号。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>当前项的序号。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/SlideIndicator.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
